package cn.bluedot.tea.service;

import cn.bluedot.framework.annotations.Dispatcher;
import cn.bluedot.framework.annotations.RequestView;
import cn.bluedot.framework.service.BaseService;

import java.util.Map;

public class RepositoryService extends BaseService {

    // 无参构造函数
    public RepositoryService() {}


    public RepositoryService(String uri, Map<String, Object[]> params, Map<String, Object> data) {
        // 调用父类有参构造
        super(params, data);
        // 执行业务, 调用父类方法
        execute(uri, params, data);
    }

    /**
     * @param params
     * @param data
     * 仓库管理用例： 新增茶叶人库
     */
    @RequestView(uri="/teaPut", view="teaPut")
    @Dispatcher(success="", failed = "")
    public void teaPut(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理用例： 新增茶叶人库
     */
    @RequestView(uri="/teaDelivery", view="teaDelivery")
    @Dispatcher(success="", failed = "")
    public void teaDelivery(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理用例： 新增设备出入库
     */
    @RequestView(uri="/devicePut", view="devicePut")
    @Dispatcher(success="", failed = "")
    public void devicePut(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理用例： 新增设备出入库
     */
    @RequestView(uri="/deviceDelivery", view="deviceDelivery")
    @Dispatcher(success="", failed = "")
    public void deviceDelivery(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理： 新增茶种
     */
    @RequestView(uri="/addTeaCategory", view="addTeaCategory")
    @Dispatcher(success="", failed = "")
    public void addTeaCategory(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理： 修改茶种
     */
    @RequestView(uri="/updateTeaCategory", view="updateTeaCategory")
    @Dispatcher(success="", failed = "")
    public void updateTeaCategory(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理：新增设备型号
     */
    @RequestView(uri="/addDeviceModel", view="addDeviceModel")
    @Dispatcher(success="", failed = "")
    public void addDeviceModel(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     *
     * @param params
     * @param data
     * 仓库管理：修改设备型号
     */
    @RequestView(uri="/updateDeviceModel", view="updateDeviceModel")
    @Dispatcher(success="", failed = "")
    public void updateDeviceModel(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理：新增供应商
     */
    @RequestView(uri="/addSupplier", view="addSupplier")
    @Dispatcher(success="", failed = "")
    public void addSupplier(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理：修改供应商
     */
    @RequestView(uri="/updateSupplier", view="updateSupplier")
    @Dispatcher(success="", failed = "")
    public void updateSupplier(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理：新增设备维修
     */
    @RequestView(uri="/addDeviceRepair", view="addDeviceRepair")
    @Dispatcher(success="", failed = "")
    public void addDeviceRepair(Map<String, Object[]> params, Map<String, Object> data) {

    }

    /**
     * @param params
     * @param data
     * 仓库管理：修改设备维修
     */
    @RequestView(uri="/updateDeviceRepair", view="updateDeviceRepair")
    @Dispatcher(success="", failed = "")
    public void updateDeviceRepair(Map<String, Object[]> params, Map<String, Object> data) {

    }

}
